package com.hugeyurt.util;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class DemoTask
{
   // @Async("taskExecutor")
   // @Scheduled(cron = "0/5 * * * *  ?")
   // @Scheduled(cron="")
    public void sendAsynTask()
    {
        try {
            //Thread.sleep(1000 * 60);
            System.out.println("异步线程已经启动");
        }catch(Exception e)
        {

        }
        //System.out.println("异步线程已经启动");

    }
}
